﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Kontakt.aspx.cs" Inherits="DentistOffice.Kontakt" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <asp:PlaceHolder ID="wiadomosc" runat="server" Visible="false"><h2 class="r"><asp:Label id="info" Text="" Runat="server" /></h2></asp:PlaceHolder>
        <h2>Kontakt</h2>
    <br /><span class="Apple-style-span" 
        style="color: #25446A; font-family: Tahoma, Verdana, Arial; font-size: 11px; line-height: 18px; ">
    <b>Gabinet dentystyczny</b>
    <br />
    ul. Żołnierska 49, 70-374 Szczecin
    <br />
    tel. +48 501 234 567
    <br />
    tel. +48 600 123 456
    <br />
    e-mail: <a href="mailto: info@dentysci.dl.pl">info@dentysci.dl.pl</a>
    <br /><br /><iframe width="400" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://mapy.google.pl/maps?f=q&amp;source=s_q&amp;hl=pl&amp;geocode=&amp;q=%C5%BBo%C5%82nierska+49+szczecin&amp;aq=&amp;sll=52.025459,19.204102&amp;sspn=6.179628,15.073242&amp;ie=UTF8&amp;hq=&amp;hnear=%C5%BBo%C5%82nierska+49,+Szczecin,+Zachodniopomorskie&amp;z=14&amp;ll=53.447078,14.49233&amp;output=embed"></iframe><br /><small><a href="http://mapy.google.pl/maps?f=q&amp;source=embed&amp;hl=pl&amp;geocode=&amp;q=%C5%BBo%C5%82nierska+49+szczecin&amp;aq=&amp;sll=52.025459,19.204102&amp;sspn=6.179628,15.073242&amp;ie=UTF8&amp;hq=&amp;hnear=%C5%BBo%C5%82nierska+49,+Szczecin,+Zachodniopomorskie&amp;z=14&amp;ll=53.447078,14.49233" style="color:#0000FF;text-align:left">Wyświetl większą mapę</a></small>
    <br /><br />
    Gabinet jest czynny w godzinach:
    <br />
    pon-pt: 8:00 - 20:00
    <br />
    sob: 8:00 - 15:00
    </span><br />
    <h2>Formularz kontaktowy</h2><br /><span class="Apple-style-span" 
        style="color: #25446A; font-family: Tahoma, Verdana, Arial; font-size: 11px; line-height: 18px; ">
        Imię i nazwisko<br />
        <asp:TextBox onclick="this.style.borderColor = '#25446A';" onfocus="this.select(); this.style.borderColor = '#25446A';" onblur="this.style.borderColor = '#999';" CssClass="text" ID="dane" Width="400px" runat="server" />
        <asp:RequiredFieldValidator ID="vDane" runat="server" ControlToValidate="dane" ErrorMessage="Pole wymagane" Display="Dynamic" /> 
        <br /><br />
        Telefon kontaktowy<br />
        <asp:TextBox onclick="this.style.borderColor = '#25446A';" onfocus="this.select(); this.style.borderColor = '#25446A';" onblur="this.style.borderColor = '#999';" CssClass="text" ID="telefon" Width="400px" runat="server" />
        <asp:RequiredFieldValidator ID="vTel" runat="server" ControlToValidate="telefon" ErrorMessage="Pole wymagane" Display="Dynamic" />
         <asp:RegularExpressionValidator ID="vTelP" runat="server" ValidationExpression="[0-9]{9}" ControlToValidate="telefon" ErrorMessage="Niepoprawny numer telefonu (9 cyfr)"></asp:RegularExpressionValidator> 
   <br /><br />
        E-mail<br />
        <asp:TextBox onclick="this.style.borderColor = '#25446A';" onfocus="this.select(); this.style.borderColor = '#25446A';" onblur="this.style.borderColor = '#999';" CssClass="text" ID="mail" Width="400px" runat="server" />
        <asp:RequiredFieldValidator ID="vMail" runat="server" ControlToValidate="mail" ErrorMessage="Pole wymagane" Display="Dynamic" /> 
        <asp:RegularExpressionValidator ID="vMailP" runat="server" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ControlToValidate="mail" ErrorMessage="Niepoprawny adres e-mail"></asp:RegularExpressionValidator> 
    <br /><br />
        Temat<br />
         <asp:TextBox onclick="this.style.borderColor = '#25446A';" onfocus="this.select(); this.style.borderColor = '#25446A';" onblur="this.style.borderColor = '#999';" CssClass="text" ID="temat" Width="400px" runat="server" />
         <asp:RequiredFieldValidator ID="vTemat" runat="server" ControlToValidate="temat" ErrorMessage="Pole wymagane" Display="Dynamic" /> 
    <br /><br />
        Treść<br />
        <asp:TextBox onclick="this.style.borderColor = '#25446A';" onfocus="this.select(); this.style.borderColor = '#25446A';" onblur="this.style.borderColor = '#999';" CssClass="text" ID="tresc" runat="server" Rows="15" Width="400px" TextMode="MultiLine" /> <asp:RequiredFieldValidator ID="vTresc" runat="server" ControlToValidate="tresc" ErrorMessage="Pole wymagane" Display="Dynamic" /> <br />
            <asp:Button ID="wyslij" runat="server"  CssClass="but" Text="Wyślij" OnClick="wyslijEmail"/>
            <asp:Button ID="wyczysc" runat="server" CssClass="but" Text="Wyczyść" OnClick="Reset" CausesValidation="false" />
            </span>
</asp:Content>
